import request from '@/utils/request'

/**
 * 获取在线用户数据
 */
export function onlineUsers(params) {
	const URL = '/api/monitor/online/pageList'
	return request({
		url: URL,
		method: 'get',
		params
	})
}

/**
 * 强退
 */
export function forcedReturn(data) {
	const URL = '/api/monitor/online/forcedReturn'
	return request({
		url: URL,
		method: 'post',
		data
	})
}